#define _CRT_SECURE_NO_WARNINGS
#define MAX_VOL 5

#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <stdbool.h>

typedef int ListData;

typedef struct CycleList {
	int front;
	int rear;
	ListData* data;
}CL;

typedef CL* cptr;

cptr initList();

void freeMem(cptr list);

bool isEmpty(cptr list);

bool isFull(cptr list);

void printList(cptr list);

void offer(cptr list, ListData val);

ListData peekFirst(cptr list);

ListData poll(cptr list);
